package com.summer.safe.system.dao;

import com.summer.safe.base.BaseDao;
import com.summer.safe.system.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 角色接口
 *
 */
@Mapper
public interface RoleDao extends BaseDao<Role> {
    List<Role> getByUserId(String userId);
    //更新角色菜单
    int deleteRoleMenu(Role role);
    //新增角色菜单
    int insertRoleMenu(Role role);


    //更新角色部门数据
    int deleteRoleOffice(Role role);
    //新增角色部门数据
    int insertRoleOffice(Role role);

    //更新数据范围
    void updateDataScope(Role role);
}
